package com.tianxiao.test.model;

import java.util.Date;

import com.baijia.tianxiao.sqlbuilder.annotation.Column;
import com.baijia.tianxiao.sqlbuilder.annotation.Entity;
import com.baijia.tianxiao.sqlbuilder.annotation.GeneratedValue;
import com.baijia.tianxiao.sqlbuilder.annotation.Id;
import com.baijia.tianxiao.sqlbuilder.annotation.Table;

import lombok.Data;

/**
 * 待办事项
 * @author zhangbing
 *
 */
@Data
@Entity
@Table(name = "back_log", catalog = "virgo")
public class BackLog {

	@Id
	@GeneratedValue
	private long id;
	
	//属于谁的待办事项
	@Column(name = "user_id")
	private long userId;
	
	//待办事项内容
	@Column(name = "content")
	private String content;
	
	//创建时间
	@Column(name = "create_time")
	private Date createTime;
	
	//更新时间
	@Column(name = "update_time")
	private Date updateTime;

	//过期时间
	@Column(name = "expire_time")
	private Date expireTime;
	
	//通知时间
	@Column(name = "notice_time")
	private Date noticeTime;
	
	//BackLogStatus:待办事项状态
	@Column(name = "status")
	private int status;
	
	//待办事项来源：0=手动,1=系统
	@Column(name = "origin")
	private int origin;
	
	//待办事项类型：只针对系统产生的待办事项有用
	@Column(name = "type")
	private Integer type;
	
	//标示ID：只针对系统产生的待办事项有用
	@Column(name = "mark_id")
	private Long markId;
}

